package nl.boelen.game.level.tiles;

import nl.boelen.game.graphics.Screen;
import nl.boelen.game.graphics.SpriteTilePosition;
import nl.boelen.game.graphics.SpriteSheet;
import nl.boelen.game.level.Level;

public class BasicTile extends Tile {

    protected int tileId;

    public BasicTile(int id, SpriteTilePosition pos) {
        super(id, false);
        tileId = pos.getX() + (pos.getY() * SpriteSheet.getTotalTilesWidth());
    }

    @Override
    public void render(Screen screen, Level level, int x, int y) {
        screen.renderTile(x, y, tileId);
    }
}